package com.linhai.scm.entity.client;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.linhai.general.enums.Enum_AddressType;
import com.linhai.scm.entity.base.BaseBean;
import com.linhai.scm.entity.base.Client;
/**
 * 客户的收货地址
 * @author linhai
 *
 */
@Entity
@Table(name="TB_ClientAddress")
public class ClientAddress extends BaseBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Client client;
	private String province;
	private String city;
	private String district;
	private String address;
	private String zipCode;
	private String tel;
	private String phone;
	private String linkMan;
	private Enum_AddressType addressType;
	
	@ManyToOne
	@JoinColumn(name = "clientID")
	public Client getClient() {
		return client;
	}
	
	@Column(name = "province")
	public String getProvince() {
		return province;
	}
	
	@Column(name = "city")
	public String getCity() {
		return city;
	}
	
	@Column(name = "district")
	public String getDistrict() {
		return district;
	}
	
	@Column(name = "address")
	public String getAddress() {
		return address;
	}
	
	@Column(name = "zipCode")
	public String getZipCode() {
		return zipCode;
	}
	
	/**
	 * 备用电话
	 * @return
	 */
	@Column(name = "tel")
	public String getTel() {
		return tel;
	}
	
	/**
	 * 手机
	 * @return
	 */
	@Column(name = "phone")
	public String getPhone() {
		return phone;
	}
	
	@Column(name = "linkMan")
	public String getLinkMan() {
		return linkMan;
	}
	
	@Column(name = "addressType")
	public Enum_AddressType getAddressType() {
		return addressType;
	}
	
	public void setClient(Client client) {
		this.client = client;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}
	public void setAddressType(Enum_AddressType addressType) {
		this.addressType = addressType;
	}

}
